import request from "@/util/request";

export const getList = (lat, lng) => request({
  url: '/enjooo-api/store/list',
  params: {
	  lat,lng
  }
});

export const getDetail = (id) => request({
  url: '/enjooo-api/store/detail',
  params: {
	  id
  }
});

export const getCurrent = (lat,lng) => request({
  url: '/enjooo-api/store/current',
  params: {
	  lat,lng
  }
});


export const memberCardUse = (cardId, usedCount, storeId) => request({
  url: '/enjooo-api/store/card/use',
  method: 'post',
  params: {
  	cardId, usedCount, storeId
  }
});